package com.eonmind.user.contract.api;


import com.eonmind.common.contract.constants.ServiceConstant;
import com.eonmind.common.contract.data.response.ResponseEntity;
import com.eonmind.user.contract.dto.UserNoticeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户通知对外接口
 */
@FeignClient(name = ServiceConstant.EON_MIND_USER_SERVICE, contextId = "user-notice")
public interface UserNoticeFeignService {
    /**
     * 发送用户通知接口
     *
     * @param userSendNoticeRequest
     * @return
     */
    @PostMapping("/user-api/user/notice/send")
    public ResponseEntity<Void> sendUserNotice(@RequestBody @Validated UserNoticeDto.UserSendNoticeRequest userSendNoticeRequest);
}
